/* 
 * File:   Div.h
 * Author: Gab'z
 *
 * Created on 3 juin 2012, 22:42
 */

#ifndef DIV_H
#define	DIV_H

#include "BinaryOperator.h"
#include "../../../../log/LogSystem.h"

namespace calculator {

    class Div : public BinaryOperator {
        friend class CommandMap;

    public:
        virtual ~Div();
        
        Div* clone() const;

        const Number* apply(const Number* n1, const Number* n2) const throw (ArithmeticException);

    private:
        Div(const std::string name);
        Div(const Div& orig);
        
        static Logger* log;
    };
}

#endif	/* DIV_H */

